package com.iot08.api.response;

import com.iot08.common.entity.app.DeviceMessage;
import lombok.Data;

import java.io.Serializable;

/**
 * @author cwj
 * @description
 * @date 2025/4/8 18:04
 **/
@Data
public class DeviceMessageResp implements Serializable {

    private String dmId;

    private String type;

    private String name;

    private String imei;

    private String msgContent;

    private String content;

    private String msgTitle;


    public void settingDeviceMessageRespObject(DeviceMessage deviceMessage) {
        this.setDmId(deviceMessage.getId());
        this.setType(deviceMessage.getType());
        this.setName(deviceMessage.getName());
        this.setImei(deviceMessage.getImei());
        this.setContent(deviceMessage.getContent());
        this.setMsgContent(deviceMessage.getMsgContent());
        this.setMsgTitle(deviceMessage.getMsgTitle());
    }

}
